package ltd.jdsoft.cute.channel.model;

import java.io.Serializable;

import org.apache.ibatis.type.Alias;

import ltd.jdsoft.cute.common.util.StatusType;

/**
 * 机构信息表，对于每个接入方，都需要在该表中存在一条记录
 * 
 * @author zhengzhq
 *
 */
@Alias("Orgnization")
public class Orgnization implements Serializable {

  private static final long serialVersionUID = -6522283609110909122L;

  // 主键，id
  private long id;
  // 机构名称
  private String name;
  // 机构地址
  private String address;
  // 联系人电话
  private String mobile;
  // 机构提交的图片地址，比如营业执照。多个以;隔开
  private String imgUrl;
  // 合作方标识，每次请求都必须传的参数
  private String cooperator;
  // 接入状态，方便控制接入方的调用。如果遇到调用非法，那么可以通过状态来加以控制
  private int status = StatusType.ENABLE;
  // 公钥的内容
  private String publicKey;
  // 是否调试状态，调试状态不需要开启IP验证。1-开发模式，0-发布模式
  private boolean debug;
  // 创建时间
  private long createTime;
  // 更新时间
  private long updateTime;
  // 备注信息
  private String remark;

  public long getId() {
    return id;
  }

  public void setId(long id) {
    this.id = id;
  }

  public String getName() {
    return name;
  }

  public void setName(String name) {
    this.name = name;
  }

  public String getAddress() {
    return address;
  }

  public void setAddress(String address) {
    this.address = address;
  }

  public String getImgUrl() {
    return imgUrl;
  }

  public void setImgUrl(String imgUrl) {
    this.imgUrl = imgUrl;
  }

  public long getCreateTime() {
    return createTime;
  }

  public void setCreateTime(long createTime) {
    this.createTime = createTime;
  }

  public long getUpdateTime() {
    return updateTime;
  }

  public void setUpdateTime(long updateTime) {
    this.updateTime = updateTime;
  }

  public String getRemark() {
    return remark;
  }

  public void setRemark(String remark) {
    this.remark = remark;
  }

  public String getMobile() {
    return mobile;
  }

  public void setMobile(String mobile) {
    this.mobile = mobile;
  }

  public String getCooperator() {
    return cooperator;
  }

  public void setCooperator(String cooperator) {
    this.cooperator = cooperator;
  }

  public int getStatus() {
    return status;
  }

  public void setStatus(int status) {
    this.status = status;
  }

  public String getPublicKey() {
    return publicKey;
  }

  public void setPublicKey(String publicKey) {
    this.publicKey = publicKey;
  }

  public boolean isDebug() {
    return debug;
  }

  public void setDebug(boolean debug) {
    this.debug = debug;
  }
}
